﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using  System.Data;
using Team4Mock.DAO;
namespace Team4Mock.Entity
{
    public class BusinessEntity
    {
        BusinessDAO bd=new BusinessDAO();
        private string businessName;
        private string sICCode;
        public BusinessEntity()
        {
            businessName = "";
            sICCode = "";
        }
        public BusinessEntity(string businessName, string sICCode)
        {
            this.businessName = businessName;
            this.sICCode = sICCode;
        }
        public string BusinessName
        {
            get { return this.businessName; }
            set
            {
                if (value == null)
                    throw new Exception("businessName not allow nullvalue.");
                this.businessName = value;
            }
        }
        public string SICCode
        {
            get { return this.sICCode; }
            set
            {
                if (value == null)
                    throw new Exception("sICCode not allow nullvalue.");
                this.sICCode = value;
            }
        }
        public DataTable Getdata()
        {
            return bd.Getdata();
        }
    }
}